var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var DireccionSchema = new Schema({ 
	direccion: String, 
	cp: Number,
	provincia: String
});

DireccionSchema.methods.print = function() {
	console.log(this.direccion + ' ' + this.cp + ' ' + this.provincia);
};

module.exports = DireccionSchema;
